package com.mindbook.vip.gawxchatinfo.service.impl.home;

import com.mindbook.vip.gawxchatinfo.entity.home.FirstPageInfo;
import com.mindbook.vip.gawxchatinfo.mapper.home.FirstPageInfoMapper;
import com.mindbook.vip.gawxchatinfo.service.home.FirstPageInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * @NAME: wxb
 * @DATE: 2022/4/29
 **/
@Service
public class FirstPageInfoServiceImpl implements FirstPageInfoService {

    @Autowired private FirstPageInfoMapper firstPageInfoMapper;

    @Override
    public Integer removeByPrimaryKey(Integer id) {
        return firstPageInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Integer add(FirstPageInfo firstPageInfo) {
        return firstPageInfoMapper.insert(firstPageInfo);
    }

    @Override
    public Integer put(FirstPageInfo firstPageInfo) {

        return firstPageInfoMapper.updateByPrimaryKeySelective(firstPageInfo);
    }

    @Override
    public Integer addSelective(FirstPageInfo firstPageInfo) {
        return null;
    }

    @Override
    public FirstPageInfo findByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKeySelective(FirstPageInfo firstPageInfo) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKey(FirstPageInfo firstPageInfo) {
        return null;
    }

    @Override
    public List<FirstPageInfo> findAll() {
        return firstPageInfoMapper.selectAll();
    }

    @Override
    public List findAllWithChild() {
        return firstPageInfoMapper.selectAllWithChild();
    }
}
